package main;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;

/**
 *
 * @author Kyle
 */
public class KeyboardListener extends KeyAdapter{
    private KeyDecoder KD;
    public KeyboardListener(KeyDecoder _KD){
        super();
        KD = _KD;
    }
    @Override
    public void keyPressed(KeyEvent e){
        KD.decode(e);
    }
    public KeyDefinitions getKeyDefs(){
    	return KD.getKeyDefs();
    }
}
